QT       += core gui
QT       +=network
QT  += sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ../AppointmentRegister/Client/appointment/communication_user.cpp \
    ../AppointmentRegister/Client/appointment/user_communication.cpp \
    ../AppointmentRegister/Server/appointment/communication_doctor.cpp \
    ../AppointmentRegister/Server/appointment/doctot_communication.cpp \
    ../Bodytest/widget.cpp \
    ../Entities/Appointment.cpp \
    ../Entities/Communication.cpp \
    ../Entities/Doctor.cpp \
    ../Entities/HealthAssessment.cpp \
    ../Entities/MedicalAdvice.cpp \
    ../Entities/MedicalRecord.cpp \
    ../Entities/Patient.cpp \
    ../Entities/Prescription.cpp \
    ../Entities/User.cpp \
    ../HomeWindow/appointmentpage.cpp \
    ../HomeWindow/departmentpage.cpp \
    ../HomeWindow/doctorcommunicationpage.cpp \
    ../HomeWindow/doctorfunctionwidget.cpp \
    ../HomeWindow/doctorinfopage.cpp \
    ../HomeWindow/doctorsindepartmentpage.cpp \
    ../HomeWindow/homepage.cpp \
    ../HomeWindow/homewindow.cpp \
    ../Tools/clienttcp.cpp \
    ../Tools/databasehandler.cpp \
    ../HomeWindow/myappointmentspage.cpp \
    ../HomeWindow/registrationpage.cpp \
    ../HomeWindow/sidebar.cpp \
    ../HomeWindow/treatmentwidget.cpp \
    ../Register/register.cpp \
    main.cpp \
    loginwidget.cpp

HEADERS += \
    ../AppointmentRegister/Client/appointment/communication_user.h \
    ../AppointmentRegister/Client/appointment/user_communication.h \
    ../AppointmentRegister/Server/appointment/communication_doctor.h \
    ../AppointmentRegister/Server/appointment/doctot_communication.h \
    ../Bodytest/widget.h \
    ../Entities/Appointment.h \
    ../Entities/Communication.h \
    ../Entities/Doctor.h \
    ../Entities/HealthAssessment.h \
    ../Entities/MedicalAdvice.h \
    ../Entities/MedicalRecord.h \
    ../Entities/Patient.h \
    ../Entities/Prescription.h \
    ../Entities/User.h \
    ../HomeWindow/appointmentpage.h \
    ../HomeWindow/departmentpage.h \
    ../HomeWindow/doctorcommunicationpage.h \
    ../HomeWindow/doctorfunctionwidget.h \
    ../HomeWindow/doctorinfopage.h \
    ../HomeWindow/doctorsindepartmentpage.h \
    ../HomeWindow/homepage.h \
    ../HomeWindow/homewindow.h \
    ../HomeWindow/myappointmentspage.h \
    ../HomeWindow/registrationpage.h \
    ../HomeWindow/sidebar.h \
    ../HomeWindow/treatmentwidget.h \
    ../Register/register.h \
    ../Tools/clienttcp.h \
    ../Tools/databasehandler.h \
    loginwidget.h \

FORMS += \
    ../AppointmentRegister/Client/appointment/communication_user.ui \
    ../AppointmentRegister/Server/appointment/communication_doctor.ui \
    ../Bodytest/widget.ui \
    ../HomeWindow/appointmentpage.ui \
    ../HomeWindow/departmentpage.ui \
    ../HomeWindow/doctorcommunicationpage.ui \
    ../HomeWindow/doctorinfopage.ui \
    ../HomeWindow/doctorsindepartmentpage.ui \
    ../HomeWindow/homepage.ui \
    ../HomeWindow/homewindow.ui \
    ../HomeWindow/myappointmentspage.ui \
    ../HomeWindow/registrationpage.ui \
    ../Register/register.ui \
    loginwidget.ui \

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    ../AppointmentRegister/Client/appointment/ok.qrc \
    ../AppointmentRegister/Server/appointment/ok.qrc \
    picture.qrc

DISTFILES += \
    ../AppointmentRegister/Client/appointment/OIP-C (1).jpg \
    ../AppointmentRegister/Client/appointment/OIP-C.jpg \
    ../AppointmentRegister/Server/appointment/OIP-C (1).jpg \
    ../AppointmentRegister/Server/appointment/OIP-C.jpg \
    picture.qrc

DISTFILES += \
    ../Register/医院.png \
    ../tcp/ClientTcp/HospitalManagement.db

SUBDIRS += \ \
    ../HomeWindow/HomeWindow.pro
